package com.flexcodejam.vfd.event
{
	import com.adobe.cairngorm.control.CairngormEvent;
	import com.flexcodejam.vfd.vo.*;

	import flash.events.Event;

	public class OrganizationEvent extends CairngormEvent {
	 
		public static var SaveOrganization:String = "SaveOrganizationEvent";
		public static var GetOrganizationById:String = "GetOrganizationByIdEvent";
		public static var GetAllOrganizations:String = "GetAllOrganizations";
		
		public var organization:Organization;
	
		
/**
		 * Constructor.
		 */
		public function OrganizationEvent(type:String,bubbles:Boolean=true,cancelable:Boolean=false)
		{
			super(type,bubbles,cancelable);
		}	
     	
     	/**
     	 * Override the inherited clone() method, but don't return any state.
     	 */
		override public function clone() : Event
		{
			var e:OrganizationEvent =  new OrganizationEvent(this.type);
			e.organization = this.organization;
			return e;
		}	
	}
}
